﻿using ShiQuan.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShiQuan.AppUpdateBLL
{
    /// <summary>
    /// 应用程序配置
    /// </summary>
    public class AppSetting
    {
        private static BasicEntity entity = new BasicEntity();
        /// <summary>
        /// 保存配置信息
        /// </summary>
        public static void Save()
        {

        }
        /// <summary>
        /// 应用程序地址
        /// </summary>
        public static string AppPath
        {
            get { return entity.GetValue("AppPath"); }
            set { entity.SetValue("AppPath", value); }
        }

        /// <summary>
        /// 服务名称
        /// </summary>
        public static string ServiceName
        {
            get { return entity.GetValue("ServiceName"); }
            set { entity.SetValue("ServiceName", value); }
        }

        /// <summary>
        /// 显示名称
        /// </summary>
        public static string DisplayName
        {
            get { return entity.GetValue("DisplayName"); }
            set { entity.SetValue("DisplayName", value); }
        }

        /// <summary>
        /// 描述
        /// </summary>
        public static string ServiceDesc
        {
            get { return entity.GetValue("ServiceDesc"); }
            set { entity.SetValue("ServiceDesc", value); }
        }

        /// <summary>
        /// 服务程序
        /// </summary>
        public static string ServicePath
        {
            get { return entity.GetValue("ServicePath"); }
            set { entity.SetValue("ServicePath", value); }
        }
    }
}
